package com.work.service.impl;

import com.work.bean.HwAttach;
import com.work.dao.HwAttachDao;
import com.work.dao.impl.HwAttachDaoImpl;
import com.work.service.HwAttachService;

import java.util.List;

public class HwAttachServiceImpl implements HwAttachService {
    HwAttachDao hwAttachDao = new HwAttachDaoImpl();
    public List<HwAttach> queryHwAttach() {
        return hwAttachDao.queryHwAttach();
    }

    public HwAttach queryHwAttachById(Integer id) {
        return hwAttachDao.queryHwAttachById(id);
    }

    public HwAttach queryHwAttachByHwId(Integer id) {
        return hwAttachDao.queryHwAttachByHwId(id);
    }

    public int saveHwAttach(HwAttach hwAttach) {
        return hwAttachDao.saveHwAttach(hwAttach);
    }

    public int updateHwAttach(HwAttach hwAttach) {
        return hwAttachDao.updateHwAttach(hwAttach);
    }

    public int deleteHwAttach(Integer id) {
        return hwAttachDao.deleteHwAttach(id);
    }
}
